
# -*- coding: utf-8 -*-
from django.http import HttpResponse
from django.shortcuts import render_to_response
import sys
reload(sys)
sys.setdefaultencoding('utf8')
# 表单
def login(request):
    return render_to_response('login.html')  #返回一个页面
 
# 接收请求数据
def login_receive(request):  
    #request.encoding='utf-8'
    if 'zhanghao' in request.GET:
        message = request.GET['zhanghao']
    else:
        message = '你的帐号为空'
    #return HttpResponse('main.html') #返回一个字符串
    return render_to_response('main.html')  #返回一个页面
